<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .img-wrap {
            width: 400px;
            height: 500px;
        }
        img {
            position: relative;
            height: 398px;
            border: 1px solid #ccc;
        }
        .mask {
            position: absolute;
            top: 0;
            left: 0;
            width: 300px;
            height: 300px;
            background:#fede4f;
            opacity: .5;
        }
        .big {
            position: absolute;
            left: 718px;
            top: 0;
            z-index: 999;
            width: 700px;
            height: 700px;
            background-color: pink;
        }
    </style>
</head>
<body>
    <div class="img-wrap">
        <img src="../img/张学友.png" alt="">
        <div class="mask">1</div>
    </div>
    <div class="big">
        <img src="../img/张学友.png" alt="">
    </div>
    <script>
        // 大图片移动距离 = 遮罩层*图片最大移动距离/遮罩层最大移动距离
    </script>
</body>
</html>